import Vue from 'vue'
import Router from 'vue-router'
import homeRoutes from './home'
import settingRoutes from './setting'
import appointmentRoutes from './appointment'
// import payRoutes from './pay'
// import doctorRoutes from './doctor'
// import reportRoutes from './report'
// import thirdPartyRoutes from './thirdParty'
// import newsRoutes from './news'
// import videoRoutes from './video'
// import flowUpRoutes from './flowUp'
import aboutRoutes from './about'
Vue.use(Router)

export default new Router({
  routes: [
    ...homeRoutes,
    ...settingRoutes,
    ...appointmentRoutes,
    ...aboutRoutes,
    // 404 page
    {
      path: '*',
      component: resolve => require(['../components/NotFound'], resolve)
    }
  ]
})
